<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include 'inc/#head.php';?>
<link href="<?php echo $this->config->item('static_url'); ?>css/manager/reset-min.css" rel="stylesheet" type="text/css" id="cssGlobe">
<link href="<?php echo $this->config->item('static_url'); ?>css/manager/regcommon.css" id="lnkSkin" type="text/css" rel="stylesheet">
<script src="<?php echo $this->config->item('static_url'); ?>jscript/simpleajax.js" type="text/javascript"></script>
</head>
<body>
	<div class="wrap" id="wrap" >
		<div class="main" id="main">
			<?php include 'register_top.php';?>
			<div class="regContainer">

        	<div class='tipinfo'>以下<span class='red2'>*</span>为必填项</div>
            <!--<form class="regForm" method="post" action="" name="form" onSubmit="return checkdata();">-->
            <?php echo form_open('manager/login',  array('name' => 'form', 'id' => 'formLogin', 'class'=>'regForm', 'onSubmit'=>'return checkdata();')); ?>
        		<div id="regMain">
                  <div class='regArea'>
                    <div class='line'>
                      <div class='info'>会员登录Email<span class='red'>*</span></div>

                      <div class='inp'>
                        <label id="loginidLabel" for="loginid" class="placeholder">  </label>
        				<input type="text" maxlength="50" id="loginid" name="email" tabindex="1" value="" class="iText noime" autocomplete='on' />
                        <input type="hidden" name="__H" value="adminLogin" />
                        <div id="suggestLoginid"></div>
                      </div>
                      <div class='tip'>　</div>
                    </div>

                    <div class='line'>
                      <div class='info'>密码<span class='red'>*</span></div>
                      <div class='inp'>
                        <label id="passwordLabel" for="password" class="placeholder"></label>
        				<input class="iText" name="password" id="password" type="password" tabindex="2" value="" maxlength="50">
                      </div>
                      <div class='tip'><span id="passwordIcon"></span></div>
                    </div>
                    <div class='line mod-validate-code'>
                      <div class='info'>验证码<span class='red'>*</span></div>
                      <div class='inp'>
                        <input type="text" name="validate" onKeyPress="checkValidate();" tabindex="3" maxlength="4" class="code noime iText" id="valcode" autocomplete="off" />
        				<img class="imgCode" src='<?php echo $this->config->item('base_url'); ?>validate_interface.html' id="regValImg" onClick="this.src='<?php echo $this->config->item('base_url'); ?>validate_interface.html?u=' + Math.random();return false" />
                        </li>
                      </div>
                      <div class='tip'>
        				<span id="valcodeIcon"><a href="javascript:void(0);" hidefocus="true" onClick="document.getElementById('regValImg').src='<?php echo $this->config->item('base_url'); ?>validate_interface.html?u=' + Math.random();return false" class="chgImg hideFocus" id="regValA">图片验证码看不清，换一张。不区分大小写！</a><span class="error1" style="display:none;" id="validate_info"></span></span>
        			  </div>

                    </div>
                    <div class='line oneline' id='agreement'>
                      <div class='inp addcompany'>
                      </div>
                    </div>
                  </div>

                  <div class="otherInfo regArea" style="position:relative">
                    <div class="privacy"></div>
                    <div class="subDiv">
        				<input name="Submit" type="submit" tabindex="3" class="signinbutton" value="登 录" id='submitbtn' /> 
                        
                    </div>
                  </div>
                </div>	
            <?php echo form_close();?>	
        </div>
	</div>
</div>
<!--footer-->
<!--标准底部 start-->
<?php include 'register_footer.php';?>
<script language="javascript">
function checkdata() {
	var form = document.form;
	if(form.email.value == '') {
		alert('您的email忘记填了！');
		form.email.focus();
		return false;
	}
	if(form.email.value != '') {
		var patrn=/^(.+?)@([a-z0-9\.]+)\.([a-z]){2,5}$/i; 
		if (!patrn.exec(form.email.value)) {
			alert('填入的email不正确！');
			form.email.focus();
			return false;
		}
	} 

	if(form.password.value == '') {
		alert('您的密码忘记填了！');
		form.password.focus();
		return false;
	}
	if(form.validate.value == '') {
		alert('验证码没有填！');
		form.validate.focus();
		return false;
	}
	if(form.validate.value.length < 4) {
		alert('验证码错误！');
		form.validate.focus();
		return false;
	}
	if(validate == 2) {
		alert('正在检测验证码！');
		form.validate.focus();
		return false;
	} else if(validate == 0) {
		alert('验证码输入不正确！');
		form.validate.focus();
		return false;
	}
}
</script>
<?php include 'inc/#alert.php';?>
</body>
</html>